package com.hj.kim.DAO;


import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.hj.kim.DTO.MemberDto;


@Repository("MemberDAO")
public class MemberDao{
	
	@Autowired private SqlSession sql;
	
	public int checkID(MemberDto param){
		return sql.selectOne("member.checkID", param);
	}

	public int insertMember(MemberDto param) {
		return sql.insert("member.insert", param);
	}

	public int login(MemberDto param) {
		return sql.selectOne("member.login", param);
	}
}
